﻿<%@ Control Language="C#" %>
<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="Syrinx.Gui.AspNet.Nitobi2" Namespace="Syrinx.Gui.AspNet.Nitobi2" TagPrefix="snc" %><%@ Register Assembly="NitobiControls" Namespace="Nitobi" TagPrefix="ntb" %>
<swf:BizProc id="orderItemBP" runat="server" FactoryName="eComSalesOrderItems">
	<ParentBizProc id="prodBP" dataId="prod" />
	<ParentBizProc id="orderBP" dataId="order" />
</swf:BizProc>
<swf:BizProc id="bundledBP" runat="server" FactoryName="eComBundledProd">
	<State associationName="BundledProducts" />
	<ParentBizProc id="prodBP" fieldName="id" dataId="pid" />
</swf:BizProc>
<div id="article" class="articlebox">
	<swf:ReadOnlyText CssClass="title" ID="title" runat="server" />
	<p></p>
	<div class="mainMediaArea">
		<asp:Image CssClass="media" ID="primaryPicture_name" runat="server" ImageUrl="/$mediaCacheName$/SmallMedium/$primaryPicture.name$" EnableViewState="false"/><br />
	</div>
	<swf:ReadOnlyText CssClass="body" ID="body" runat="server"  Width="100%" Height="100%" />
</div>
<table>
	<tr><td><asp:Label ID="_partIdLbl" runat="server">Part #:</asp:Label></td><td><swf:ReadOnlyText runat="server" ID="partId" /></td></tr>
	<tr><td><asp:Label ID="_sellPriceLbl" runat="server">Sell Price:</asp:Label></td><td><swf:ReadOnlyText runat="server" ID="sellPriceFormated" /></td></tr>
	<tr><td><asp:Label ID="_weightLbl" runat="server">Weight:</asp:Label></td><td><swf:ReadOnlyText runat="server" ID="weight_amount" /><swf:ReadOnlyText runat="server" ID="weight_unit" /></td></tr>
	<tr><td colspan="2">
	<table><tr>
		<td><asp:Label ID="_dimLbl" runat="server">Dimensions:</asp:Label>
			<asp:Label ID="_widthLbl" runat="server">W:</asp:Label></td><td><swf:ReadOnlyText runat="server" ID="dimensions_width_amount" /></td>
		<td><asp:Label ID="_lengthLbl" runat="server">L:</asp:Label></td><td><swf:ReadOnlyText runat="server" ID="dimensions_length_amount" /></td>
		<td><asp:Label ID="_depthLbl" runat="server">D:</asp:Label></td><td><swf:ReadOnlyText runat="server" ID="dimensions_depth_amount" /></td>
	</tr></table></td></tr>
</table>
<div>
<snc:ComplexBizObjListDisplay runat="server" ID="productsDisplay"
		ParentBizProcIds=bundledBP" ReadOnlyTemplate="Articles.Gui.AspNet.ArticleListDisplay-ProductStyle2">
		<macros>
			<Entry name="navLink" type="String">$AjaxCall-BizObjSelected$</Entry>
			<Entry name="imgResolution" type="String">SmallThumbnail</Entry>
		</macros>
</snc:ComplexBizObjListDisplay>
</div>	
<div class="ecomQty">
	<snc:NitobiBizObjDisplay id="qtyDisplay" runat="server"
		ReadOnlyTemplate="eCom.Gui.AspNet.OrderQtyDisplay"
		ParentBizProcIds="orderItemBP">
	</snc:NitobiBizObjDisplay>
</div>
<span class="button5"><snc:ActionButton runat="server" ID="_add2CartBtn" Actions="orderItemBP.AddBizObj" Text="Add To Cart"  /></span>
<span class="button1"><snc:ActionButton runat="server" ID="_associateBtn" Actions="bundledBP.createAssocition" Text="Generate" ToolTip="Create Product Association"
		PopupPage="ArticleGridPopup.aspx" PopupHeight="535px"  PopupWidth="820px" PopupTitle="Product Association."/></span>
			
